package com.gongzhiyun.springboot3test.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.gongzhiyun.springboot3test.base.R;
import com.gongzhiyun.springboot3test.entity.dialogue.PrivateMessages;
import com.gongzhiyun.springboot3test.vo.ChatData;
import com.gongzhiyun.springboot3test.vo.UserInfo;

import java.util.List;

public interface PrivateService {
    R<String> send(PrivateMessages privateMessages);


    R<String> sendByOther(String username);

    R<List<UserInfo>> getuid();

    R<List<PrivateMessages>> getDialogue(Integer id);



    R<Integer> getUnreadCount(Integer id);

    R<String> read(Integer id);
}
